package com.dailywork.basepro.spi;

import java.util.Iterator;
import java.util.ServiceLoader;

public class DisTest1 {

    public static void main(String[] args) {
        ServiceLoader<Dis> loader = ServiceLoader.load(Dis.class);
        Iterator<Dis> dt = loader.iterator();
        while (dt.hasNext()) {
            Dis dis = dt.next();
            dis.display();
        }
    }
}
